package com.wwwarehouse.usercenter.fragment.permissiondistribute;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.wwwarehouse.common.activity.base.BaseFragment;
import com.wwwarehouse.usercenter.R;


/**
 * @author : mundane
 * @time : 2017/9/24 11:35
 * @description :
 * @file : AuthorityReceiveNotSuccessFragment.java
 */

public class AuthorityReceiveNotSuccessFragment extends BaseFragment {

	private View mBtnIKnow;

	public static AuthorityReceiveNotSuccessFragment newInstance() {
		AuthorityReceiveNotSuccessFragment fragment = new AuthorityReceiveNotSuccessFragment();
		Bundle args = new Bundle();
		fragment.setArguments(args);
		return fragment;
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		if (getArguments() != null) {

		}
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.fragment_success_not_receive_authority, container, false);
		return view;
	}

	@Override
	public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
		// findViewById
		mBtnIKnow = $(R.id.btn_i_know);
		mBtnIKnow.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				popFragment();
			}
		});
	}

	@Override
	public void setTitle() {
		if (peekFragment() instanceof AuthorityReceiveNotSuccessFragment) {
			mActivity.setTitle("权限接收");
		}
	}

	@Override
	public void requestDatas() {

	}
}
